<?php
class Nc_m extends CI_Model {
    function get_key_detail($params){
        $result=$this->db->get_where('zwop_keymanager',$params)->result_array();
        //$string='工行';
        //$str=preg_match('//u', $string)?$string:iconv('gbk', 'utf-8', $string);
        //$result=$this->db->get_where('zwop_keymanager',array('key_bank_name'=>$str))->result_array();
        //$result=$this->db->query("select * from zwop_keymanager where key_bank_type=1007")->result_array();
        if($result)
            return $result;
        return false;
    }
    function get_policy_detail($params){
        $result=$this->db->get_where('zwop_bankpolicymanager',$params)->result_array();
        if($result)
            return $result;
        return false;
    }
    function get_port_detail($params){
        $result=$this->db->get_where('zwop_ncportmanager',$params)->result_array();
        if($result)
            return $result;
        return false;
    }
}
